<!--
<div id="main-nav">
<dl>	
	<dt id="utama"><a href="index.php"><?php echo $lang['MENU_HOME']; ?></a></dt>
	<dt id="produk"><a href="product.php"><?php echo $lang['MENU_OUR_PRODUCTS']; ?></a></dt>
	<dt id="tentang"><a href="aboutus.php"><?php echo $lang['MENU_ABOUT_US']; ?></a></dt>
	<dt id="terapi"><a href="terapi.php"><?php echo $lang['MENU_TERAPI']; ?></a></dt>
	<dt id="hubungi"><a href="contactus.php"><?php echo $lang['MENU_CONTACT_US']; ?></a></dt>
</dl>
</div>
-->
<div class="mlmenu horizontal bluewhite" style="text-align: center;" >
	<ul style="display:inline;">
		<li><a href="index.php"><?php echo $lang['MENU_HOME']; ?></a></li>
		<li><a href="product.php"><?php echo $lang['MENU_OUR_PRODUCTS']; ?></a>
			<ul id='subMenuHorizon' style="text-align: left;">
				<?php
					$Qcategory= "SELECT *  from category order by name";
					$Ccategory = $db->sql_total($Qcategory);
					$Rcategory = $db->sql_fetch($Qcategory);
					
					foreach($Rcategory as $row){
						?>
						<li>
							<a href="#"><?php echo ucfirst(strtolower($row['name'])); ?></a>	
						
						<?php
						$Qitem= "SELECT * from item where category_id = '$row[id]'";
						$Citem = $db->sql_total($Qitem);
						$Ritem = $db->sql_fetch($Qitem);
						if($Citem <> 0){
							echo "<ul id='subMenuHorizon' style='text-align: left;'>";
							foreach($Ritem as $i){
								?>
									<li><a href="product_detail.php?id=<?php echo $i['id'] ?>"><?php echo $i['name']; ?></a></li>
								<?php
							}
							echo "</ul>";
							echo "</li>";
						
						}else{
							echo "</li>";
						}
					}
				?>
			</ul>
		</li>
		<li><a href="aboutus.php"><?php echo $lang['MENU_ABOUT_US']; ?></a></li>
		<li><a href="terapi.php"><?php echo $lang['MENU_TERAPI']; ?></a></li>
		<li><a href="contactus.php"><?php echo $lang['MENU_CONTACT_US']; ?></a></li>
	</ul>
</div>